<%@page import="transfer.Warehouse"%>
<%@page import="content.WarehouseContent"%>
<%@page import="controller.SessionAttribute"%>
<%@page import="java.util.ArrayList"%>
<div class="box">
    <table class="table" rules=all>
        <tr>
            <td>Name</td>
            <td>Address</td>
            <td>Shipment Speed (km/h)</td>
            <td>Shipment Rate ($)</td>
        </tr>
        <%
            ArrayList warehouseList = WarehouseContent.getAllWarehouses();
            for (int i = 0; i < warehouseList.size(); i++) {
                Warehouse warehouse = (Warehouse) warehouseList.get(i);
        %>
        <tr>
            <td><%= warehouse.getNameWarehouse() %></td>
            <td>
                <%= warehouse.getAddress() %>
            </td>
            <td>
                <%= warehouse.getShipmentSpeed() %>
            </td>
            <td>
                <%= warehouse.getShipmentRate() %>
            </td>
        </tr>
        <%
            }
        %>
    </table>
</div>